<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <div class="x_content">
                <div class="x_title">
                    <h2>修改APP基础信息<i class="fa fa-user"></i><small>${userSession.devName}</small></h2>
                    <div class="clearfix"></div>
                </div>
                <form class="form-horizontal form-label-left" action="appinfomodifysave"  method="post" enctype="multipart/form-data">
                    <input id="id" type="hidden" name="id" value="${info.id}"/>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwareName">软件名称 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="softwareName" class="form-control col-md-7 col-xs-12" data-validate-length-range="20"
                                   data-validate-words="1" name="softwareName" placeholder="请输入软件名称"
                                   value="${info.softwareName}" required="required" type="text">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="APKName">APK名称 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="APKName" name="APKName" required="required"
                                   class="form-control col-md-7 col-xs-12" data-validate-length-range="20" data-validate-words="1"
                                   value="${info.APKName}" placeholder="请输入APK名称">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="supportROM">支持ROM <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="supportROM" name="supportROM"  required="required"
                                   class="form-control col-md-7 col-xs-12" data-validate-length-range="20" data-validate-words="1"
                                   value="${info.supportROM}" placeholder="请输入支持的ROM">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="interfaceLanguage">界面语言 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="interfaceLanguage" name="interfaceLanguage" required="required"
                                   placeholder="请输入软件支持的界面语言" data-validate-length-range="20" data-validate-words="1"
                                   value="${info.interfaceLanguage}" class="form-control col-md-7 col-xs-12">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwareSize">软件大小 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="number" id="softwareSize" name="softwareSize" required="required"
                                   placeholder="请输入软件大小，单位为Md" data-validate-minmax= "10,500"
                                   value="${info.softwareSize}" class="form-control col-md-7 col-xs-12">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="downloads">下载次数 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="downloads" type="number" name="downloads"
                                   placeholder="请输入下载次数" data-validate-minmax= "10,500"
                                   value="${info.downloads}" class="optional form-control col-md-7 col-xs-12">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label for="flatformId" class="control-label col-md-3">所属平台</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="hidden" id="fid" value="${info.flatformId}"/>
                            <select name="flatformId" class="form-control" id="flatformId">

                            </select>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label for="categoryLevel1" class="control-label col-md-3 col-sm-3 col-xs-12">一级分类</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="hidden" id="cl1" value="${info.categoryLevel1}"/>
                            <select name="categoryLevel1" class="form-control" id="categoryLevel1">

                            </select>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="categoryLevel2">二级分类<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">

                            <input type="hidden" id="cl2" value="${info.categoryLevel2}"/>
                            <select name="categoryLevel2" class="form-control" id="categoryLevel2">

                            </select>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="categoryLevel3">三级分类<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">

                            <input type="hidden" id="cl3" value="${info.categoryLevel3}"/>
                            <select name="categoryLevel3" class="form-control" id="categoryLevel3">

                            </select>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">app状态<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="statusName" type="text" class="form-control col-lg-12"
                            name="statusName" readonly="readonly" value="${info.statusName}"/>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="appInfo">应用简介<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <textarea id="appInfo" required="required" name="appInfo"
                                      placeholder="请输入本软件的相关信息，本信息作为软件的详细信息进行软件的介绍"
                                      class="form-control col-md-7 col-xs-12">${info.appInfo}</textarea>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="attach">LOGO图片<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="hidden" id="logoPicPath" name="logoPicPath" value="${info.logoPicPath}"/>
                            <input type="hidden" id="logoLocPath" name="logoLocPath" value="${info.logoLocPath}"/>
                            <div id="uploadfile" style="display: none">
                                <input type="file" id="attach" name="attach">
                                <p><span style="color: red;font-weight: bold" >*注1.大小不超过500k.
                                2.图片格式：jsp、png、jpeg、pneg.</span></p>
                            </div>
                            <div id="logoFile"></div>
                            ${fileUploadError}
                        </div>
                    </div>
                    <div class="ln_solid"></div>
                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                            <button id="send" type="submit" class="btn btn-success">保存</button>
                            <button id="back" type="button" class="btn btn-primary">返回</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<%@include file="common/footer.jsp"%>
<script src= "${pageContext.request.contextPath }/statics/localjs/appinfomodify.js"></script>
